package com.rk.msm.service;

import com.rk.hosp.vo.msm.MsmVo;

/**
 * @author :Rk.
 * @date : 2022/11/22
 */
public interface MsmService {


    /**
     * 发送邮箱验证码
     * @param phone
     * @param code
     * @return
     */
    boolean sendEmail(String phone, String code);


    /**
     * 发送短信验证码
     * @param phone
     * @param code
     * @return
     */
    boolean sendMessage(String phone,String code);


    /**
     * 监听 邮箱队列
     * @param msmVo
     * @return
     */
    boolean send(MsmVo msmVo) throws Exception;
}
